package com.luoc;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.bind.ValidationException;

/**
 * @Author: luoc
 * @Date: 2019/9/16 9:47
 */
@RestController
@Slf4j
public class testController {

    @RequestMapping("test")
    public String test(){
        try{
            throw  new NullPointerException();
        }catch (Exception e){
            log.error("系统错误",e);
        }
        return  "error";
    }
}
